package net.area80.skin
{
	import flash.utils.Dictionary;

	public class AbstractSkin
	{
		protected var itemDict:Dictionary;
		protected var weakReference:Boolean = false;
		
		public function AbstractSkin(useWeakReference:Boolean=false)
		{
			weakReference = useWeakReference;
		}
		protected function addItem (item:*, name:String):void {
			if(!itemDict) itemDict = new Dictionary(weakReference);
			itemDict[name] = item;
		}
	}
}